package com.hyg.lib_music.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.hyg.lib_music.R;

/**
 * @author: Administrator
 * @date: 2021/4/13
 */
public class PlayingListAdapter  extends RecyclerView.Adapter<PlayingListAdapter.ViewHolder> {
    Context context;

    @NonNull
    @Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view= LayoutInflater.from(context).inflate(R.layout.item_playing_list,parent);
        return new ViewHolder(view);
    }

    @Override
    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {


    }

    @Override
    public int getItemCount() {
        return 0;
    }

    public static  class  ViewHolder extends  RecyclerView.ViewHolder{
        CheckBox selectCK,collectionCk;
        TextView nameTv;
        ImageView playingIcon;
        public ViewHolder(@NonNull View itemView) {
            super(itemView);
            selectCK=itemView.findViewById(R.id.iv_selected);
            collectionCk=itemView.findViewById(R.id.iv_collection);
            nameTv=itemView.findViewById(R.id.tv_name);
            playingIcon=itemView.findViewById(R.id.iv_playing_hint);
        }
    }

}
